package cn.lili.controller.auth;


import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.service.TicketService;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "认证接口")
@RequiredArgsConstructor
@RequestMapping("/auth/ticket")
@Slf4j
public class TicketController {

    private final TicketService ticketService;

    /**
     * 签名
     * @return 是否成功
     */
    @RequestMapping("/generateShareSign")
    public ResultMessage<Object> generateShareSign(String scene) {
        return ticketService.generateShareSign(scene);
    }

}
